<!--  -->
<template>
  <view class="c-load-more">
    <c-loading v-if="loadType === 'more'" :text="loadingText" />
    <text v-else>{{ noMoreText }}</text>
  </view>
</template>

<script lang="ts" setup>
  defineProps({
    loadingText: {
      type: String,
      default: '加载更多',
    },
    loadType: {
      type: String,
      default: 'more',
    },
    noMoreText: {
      type: String,
      default: '已经到底啦 ~',
    },
  });
</script>

<style lang="scss" scoped>
  .c-load-more {
    font-size: 28rpx;
    color: rgba(62, 70, 84, 0.35);
    text-align: center;
    margin-bottom: 50rpx;
  }
</style>
